import http from '@/utils/http'

// 首页地图区域统计数据
export const areaStationData = (params) => {
  const url = '/home-page/home-page/areaStationData'
  return http.post(url, params)
}

// 首页右侧数据
export const queryDataByUserInfo = (params) => {
  const url = '/home-page/home-page/queryDataByUserInfo'
  return http.post(url, params)
}

// 大屏展示版本
export const dataToday = (params) => {
  const url = '/home-page/exhibition/dataToday'
  return http.post(url, params)
}
// 大屏展示版本右上折线数据
export const trendStatistics = (params) => {
  const url = '/home-page/exhibition/rightStatistic'
  return http.post(url, params)
}

// 大屏展示版本上部数据
export const topData = (params) => {
  const url = '/home-page/exhibition/topExhibition'
  return http.post(url, params)
}

// 大屏展示版本上地图数据
export const mapData = (params) => {
  const url = '/home-page/exhibition/centerExhibition'
  return http.post(url, params)
}
//地区电站数
export function areaStation(params) {
  const url = '/home-page/exhibition/areaStation'
  return http.post(url, params)
}

//地区充电次数
export function areaBill(params) {
  const url = '/home-page/exhibition/areaBill'
  return http.post(url, params)
}

//地区插口利用率
export function areaAvailability(params) {
  const url = '/home-page/exhibition/areaAvailability'
  return http.post(url, params)
}

//电站插口数
export function leftStationPlugNum(params) {
  const url = '/home-page/exhibition/leftStationPlugNum'
  return http.post(url, params)
}

//电站充电次数
export function leftStationChargeSum(params) {
  const url = '/home-page/exhibition/leftStationChargeSum'
  return http.post(url, params)
}

//电站插口利用率
export function leftStationPlugUsage(params) {
  const url = '/home-page/exhibition/leftStationPlugUsage'
  return http.post(url, params)
}

//充电行为分析
export function pieChart(params) {
  const url = '/home-page/exhibition/pieChart'
  return http.post(url, params)
}

//告警列表
export function alarmList(params) {
  const url = '/home-page/exhibition/alarmList'
  return http.post(url, params)
}

export function areaDevice(params) {
  const url = '/home-page/exhibition/areaDevice'
  return http.post(url, params)
}
